<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::get('get_class_and_grade_by_school','ApiController@get_class_and_grade_by_school');
Route::get('get_class_and_grade_by_club','ApiController@get_class_and_grade_by_club');
Route::get('get_class_and_grade_time','ApiController@get_class_and_grade_time');
Route::get('get_load_classroom_select','QuestionnaireController@get_load_classroom_select');
Route::get('get_load_time_select','QuestionnaireController@get_load_time_select');
Route::get('get_student_application_info','QuestionnaireController@get_student_application_info');
Route::post('post_student_application','QuestionnaireController@post_student_application');
Route::post('post_update_student_application','QuestionnaireController@post_update_student_application');

Route::middleware('auth:api')->get('/user', function (Request $request) {
    return $request->user();
});
